package self.wargon.springcloudstu.servicea.client;

import org.easydev.base.webbase.bo.JsonEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import self.wargon.springcloudstu.common.bo.UserInfo;

@FeignClient(name = "user-service")
public interface UserServiceClient {

    @GetMapping("/api/user/info/username/{username}")
    JsonEntity<UserInfo> getUserInfo(@PathVariable("username") String username);

}
